﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>
角色管理
</title><link href="<%=basePath%>Styles/css.css" rel="stylesheet" type="text/css" />
    <script src="<%=basePath%>Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="<%=basePath%>Scripts/IndexManager.js" type="text/javascript"></script>
    <script type="text/javascript">

//        function HolidayWins() {

//            HolidayWin('HolidayUpdateManager.aspx', $("#ddlDate").val(), '', '240', '400');

//        }
    </script>
</head>
<body style="margin-top: 5px; background: #EFF3FF;">
    <form method="post" action="HolidayManager.htm" id="form1">

 
<script type="text/javascript"> 
//<![CDATA[
    var theForm = document.forms['form1'];
    if (!theForm) {
        theForm = document.form1;
    }
    function __doPostBack(eventTarget, eventArgument) {
        if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
            theForm.__EVENTTARGET.value = eventTarget;
            theForm.__EVENTARGUMENT.value = eventArgument;
            theForm.submit();
        }
    }
//]]>
    function openWin() {
        showModalDialog("HolidayUpdateManage.htm", "example04", "dialogWidth:200x;dialogHeight:100px;dialogLeft:200px;dialogTop:150px;center: yes;help:yes;resizable:yes;status:yes")
    }
    function forward(){
    	location.href="RoleAddForward.do";
    }
    function fun(id){
    	if(confirm("是否确定删除？")){
				location.href="RoleDelete.do?roleId="+id;
			}
    }
</script>
 
 

    <div id="divOne">
        <div>
            <table width="100%">
                <tr>
                    <td align="left">
                        <input type="button" id="btnAdd" class="button" value="添加角色" onclick="forward()"></input>
                    </td>
                </tr>
            </table>
        </div>
        <div class="cxlb_2">
            <table width="100%" class="tablist" id="complaintList">
                <thead id="tablistHer">
                    <tr>
                        <th width="60%">
                            角色名称
                        </th>
                        <th width="7%">
                            操作
                        </th>
                    </tr>
                </thead>
                <tbody id="tab">
                	<c:forEach items="${list}" var="bean">
                			<tr>
                                <td width="60%">
                                    ${bean.roleName }
                                </td>
                                
                                <td width="10%">
                                 <a href="RoleUpdateForward.do?roleId=${bean.roleId }">
                                        修改</a>
                                 <a href="javascript:void(0);" onclick="fun(${bean.roleId})">
                                        删除</a>
                                </td>
                            </tr>
                	</c:forEach>
                </tbody>
            </table>
            
<!-- AspNetPager 7.3.2  Copyright:2003-2010 Webdiyer (www.webdiyer.com) -->
<div id="AspNetPager1" class="anpager" style="width:100%;text-align:left;">
<div align="left" class="anpager" style="width:60%;float:left;">
	<a disabled="disabled" style="margin-right:10px;">首页</a><a disabled="disabled" style="margin-right:10px;">上一页</a><span class="cpb" style="margin-right:10px;">1</span><a disabled="disabled" style="margin-right:10px;">下一页</a><a disabled="disabled" style="margin-right:10px;">尾页</a>
</div><div class="anpager" style="width:40%;float:left;">
	记录总数：<font color="blue"><b>3</b></font> 总页数：<font color="blue"><b>1</b></font> 当前页：<font color="red"><b>1</b></font>
</div>
</div>
<!-- AspNetPager 7.3.2  Copyright:2003-2010 Webdiyer (www.webdiyer.com) -->
 
 
        </div>
        <script type="text/javascript">
<!--
            var Ptr = document.getElementById("tab").getElementsByTagName("tr");
            function pageLoad() {
                for (i = 1; i < Ptr.length + 1; i++) {
                    Ptr[i - 1].className = (i % 2 > 0) ? "t1" : "t2";
                }
            }
            window.onload = pageLoad;
            for (var i = 0; i < Ptr.length; i++) {
                Ptr[i].onmouseover = function () {
                    this.tmpClass = this.className;
                    this.className = "t3";

                };
                Ptr[i].onmouseout = function () {
                    this.className = this.tmpClass;
                };
            }
//-->
        </script>
    </div>
    </form>
</body>
</html>

